import { request } from '@/common/request.js'

// 项目列表
export function getCateList(data) {
  return request({
    url: `/index/cate_list`,
    method: 'post',
	data,
  })
}
// 维修类型
export function getRepairList(data) {
  return request({
    url: `/index/repair_list`,
    method: 'post',
	data,
  })
}
// 微信登录
export function wxmobile(data) {
  return request({
    url: `/user/wxPhoneLogin`,
    method: 'post',
	data,
  })
}
// 微信登录
export function getUserInfo(data) {
  return request({
    url: `user/get_user_info`,
    method: 'post',
	data,
  })
}
// 定金
export function getDeposit(data) {
  return request({
    url: `index/deposit`,
    method: 'post',
	data,
  })
}
// 上传
export function upload(data) {
  return request({
    url: `common/upload`,
    method: 'post',
	data,
  })
}
// 创建订单
export function createOrder(data) {
  return request({
    url: `order/create_order`,
    method: 'post',
	data,
  })
}
// 订单列表
export function getOrderList(data) {
  return request({
    url: `/order/order_list`,
    method: 'post',
	data,
  })
}
// 支付
export function goPay(data) {
  return request({
    url: `/order/to_pay`,
    method: 'post',
	data,
  })
}
// 取消订单
export function cancelOrder(data) {
  return request({
    url: `/order/cancel_order`,
    method: 'post',
	data,
  })
}
// 客服电话
export function getKefuPhone(data) {
  return request({
    url: `/index/kefu_phone`,
    method: 'post',
	data,
  })
}
// 客服电话
export function getOrderDetail(data) {
  return request({
    url: `/order/order_detail`,
    method: 'post',
	data,
  })
}